package com.lyandwc.lw_bbs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lyandwc.lw_bbs.entity.Notification;

import java.util.List;

public interface NotificationService extends IService<Notification> {
    List<Notification> listNotificationsByUid(int userId);
    List<Notification> listUnreadNotificationsByUid(int userId);
    Boolean checkIsOwner(int id, int userId);
    Notification addNotification(int action, int commentId, int userId, int fromCommentId, int fromUserId);
}
